package com.umgsai.thread.thread04;

public class Parent {

	public int i = 10;
	synchronized public void method1(){
		try {
			i--;
			System.out.println("parent i=" + i);
			Thread.sleep(100);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
